import * as actionTypes from './actionTypes';

const defaultState = {
	teacherData: []
};

export default (state = defaultState, action) => {
	switch(action.type) {
		case actionTypes.Get_Personal_Teacher:
			const newState = JSON.parse(JSON.stringify(state)) 
			newState.teacherData = action.data
			console.log(newState, '......')
			return newState;
		default:
			return state;
	}
}